<?php
namespace common\models;

use yii\db\ActiveRecord;
use yii\behaviors\TimestampBehavior;

/**
 * Class Menu
 * @package backend\models
 *
 * @property integer $level
 * @property string  $menu_name
 */
class Content extends ActiveRecord
{
     public static function tableName()
    {
        return 'content';
    }

    public function rules()
    {
        return [
            [['id','type','create_time'],'integer'],
            [['title','content'],'string'],
        ];
    }

    public function attributeLabels()
    {
        return [
            'id'=>	'自动增量	' ,
            'title'	=>'标题',
            'content'=>'内容',
            'type'=>'文章类型',
            'create_time'=>'创建时间'
        ];
    }

}